package org.example.em;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

public enum StudentProofStart {

    //通过
    PASS(1,"通过"),
    //不通过
    NOT_PASS(2,"不通过");


    @JsonValue
    private final Integer code;//状态码
    @EnumValue
    private final String desc;//描述
    //构造方法
    StudentProofStart(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
